<%@ page language="java" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <title>图书</title>
    <link rel="stylesheet" href="css/index.css?20170702">
</head>
<body>

<table class="tt">
    <captin>图书信息</captin>
    <tr>
        <th>Id</th>
        <th>名称</th>
        <th>价格</th>
        <th>基本操作</th>
        <th>基本操作(二)</th>
    </tr>

    <c:forEach items="${book}" var="add">
    <tr>
        <td>${add.id}</td>
        <td>${add.name}</td>
        <td>${add.price}</td>
        <td><a href="delete?id=${add.id}" onclick="return confirm('是不是真的要删除:${add.name}')">删除</a></td>
        <td> <a href="update?id=${add.id}">修改</a></td>

    </tr>

    </c:forEach>
    <tr >
        <td colspan="10"><a href="insert">添加新书</a></td>
    </tr>
    <tr>
        <td colspan="10">分页：<span><a href="index01?id=${num-1}">上一页</a></span>&nbsp;&nbsp;<span><a href="index01?id=${num+1}">下一页</a></span>&nbsp;</td>
    </tr>

</body>
</html>